package com.ds.config;


import com.ds.proxy.LoggerProxyFactory;
import com.ds.proxy.UserService;
import com.ds.proxy.UserServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: Spring-Study
 * @description: 】
 * @author: Dawson.Zhang
 * @create: 2020-04-04
 **/
@Configuration
public class BeansConfig {

    @Bean
    public UserService getUserService(){
        return new UserServiceImpl();
    }
    @Bean
    public LoggerProxyFactory getLoggerProxyFactory(){
        return new LoggerProxyFactory();
    }
}
